//
//  MapServiceViewController.h
//  ASHT_IOS
//
//  Created by 宋安安 on 14-4-10.
//  Copyright (c) 2014年 宋安安. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BMapKit.h"
#import "ViewControllerEx.h"
#import "NearbyViewController.h"
#import "RoadMapViewController.h"
#import "MBProgressHUD.h"
@interface RouteAnnotation : BMKPointAnnotation
{
	int _type; ///<0:起点 1：终点 2：公交 3：地铁 4:驾乘 5:途经点
	int _degree;
}

@property (nonatomic) int type;
@property (nonatomic) int degree;
@end

@interface UIImage(InternalMethod)

- (UIImage*)imageRotatedByDegrees:(CGFloat)degrees;

@end

@interface MapServiceViewController : ViewControllerEx<BMKMapViewDelegate,BMKSearchDelegate,BMKUserLocationDelegate,NearbyViewControllerDelegate,RoadMapViewControllerDelegate>
{
    IBOutlet UIView *view_content;
    BMKSearch* _search;//搜索要用到的
    
    BMKMapView* _mapView;//地图视图

    CLLocationCoordinate2D starcoor;
    
    
    NSMutableArray *pathArray;
    
    BMKCoordinateRegion region;
    BMKUserLocation *_userLocation;
    NSMutableDictionary *dic_BMKPoiInfo;
    IBOutlet UIView *view_select;
    IBOutlet UITextField *text_select;
    BMKPolygon* polygon;
    NSMutableArray *arr_rect;
    NSMutableArray *arr_polygon;
    NSMutableArray *arr_popAnnotation;
    NSMutableArray *arr_pop;
    NSMutableArray *arr_phone;
    BOOL isarler;
}

-(IBAction)btn_01_onClick:(id)sender;


@end
